# -*- coding: UTF-8 -*-

import requests

# 执行API调用并储存响应
owner = "kkxue"
repo = "python_office_automation"
data_type = "subscribers"
url = "https://gitee.com/api/v5/repos/{owner}/{repo}/{data_type}".format(
    owner=owner,
    repo=repo,
    data_type=data_type
)
r = requests.get(url)
print("Status code:", r.status_code)

# 将API响应储存
response_dict = r.json()

# 打印结果
print(response_dict)
